import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
//导入vue-router
import {createRouter} from "./router"
//导入VueX
import store from './store'
//导入  element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入 Axios 请求接口的工具
import axios from 'axios'
import VueAxios from 'vue-axios'

//设置后端接口的统一前缀
axios.defaults.baseURL = 'http://localhost:8080/api/'

createApp(App).
use(createRouter()).
use(ElementPlus).
use(store).
use(VueAxios, axios).
mount('#app')